package com.hydl.power.service;

import com.github.pagehelper.PageInfo;
import com.hydl.power.pojo.TemperatureData;
import com.hydl.power.pojo.TemperatureDevice;

import java.util.List;
import java.util.Map;

public interface TemperatureDeviceService {


    TemperatureDevice getTemperatureDeviceByTemperatureSerialNumber(String serialNumber);

    int addTemperatureDevice(String deviceName,String areaId,String areaName,String projectId,String projectName,String powerRoomId,String powerRoomName,String deviceAddress,String serialNumber, String gatewaySn,String deviceMessageAddress);


    List<TemperatureDevice> getTemperatureDeviceByRoomId(String roomId);

    PageInfo<TemperatureDevice> getTemperatureDeviceList(Integer pageNum, Integer pageSize, String areaId, String projectId, String powerRoomId, String token);

    List<TemperatureData> getTemperatureDataList(String powerRoomId);

    List<TemperatureData> getTemperatureDataLine(String deviceId,String time);

    List<TemperatureData> getTemperatureDevicePowerData(String serialNumber,String time);

    int updateTemperatureDeviceById(Integer id,String deviceName,String deviceAddress,String deviceMessageAddress,String serialNumber);

    int deleteTemperatureDeviceById(Integer id);

    TemperatureDevice getTemperatureDeviceByTemperatureDeviceId(String deviceId);

    List queryDevice(String  projectId,String powerRoomId);
}
